#

| Chapter 2 UNIX Commands |

## rmdir

    rmdir [options] directories

Delete the named `directories` (the name itself, not the contents). `directories` are deleted from the parent directory and must be empty (if not, rm -r can be used instead). See also mkdir.

### Options

-p

  Remove `directories` and any intervening parent directories that become empty as a result; useful for removing subdirectory trees.

-s

  Suppress standard error messages caused by -p.

Reference: rmdel |  | Reference: rsh